/**
 * Copyright (c) subnew
 * Licensed under the GPL;
 * @email:joseanluo@gmail.com
 * @Title: LautoEntity.java
 * @Package com.subnew.copyman.frame.dao.entity
 */
package com.subnew.mango.frame.dao.entity;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import com.subnew.mango.frame.excel.annotation.Excel;

/**
 *抽象 Entity基类。<br>
 * 一个统一ＩＤ生成生策略的基类（ＩＤ为ＬＯＮG自增长）
 * @author JoseanLuo
 * @date 2014年8月29日 上午8:47:28
 * @version V1.0
 */
@MappedSuperclass
public abstract class LautoEntity extends AbstractEntity<Long>{

	@Excel(exportName="编号",exportFieldWidth=10)
	protected Long id;
	/* (non-Javadoc)
	 * @see com.subnew.copyman.frame.dao.entity.AbstractEntity#getId()
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID")
	@Override
	public Long getId() {
		
		return id;
	}

	/* (non-Javadoc)
	 * @see com.subnew.copyman.frame.dao.entity.AbstractEntity#setId(java.io.Serializable)
	 */
	@Override
	public void setId(Long id) {
		this.id=id;
	}

}
